package com.quectel.mobile.vo.mobileuser.login;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 微信JSAPI登录所需要的参数
 *
 * @author caolu
 * @email louis.cao@quectel.com
 */
@Data
@Schema
public class JSAPILoginVo {

    @Schema(description = "租户code")
    @NotEmpty
    private String tenantCode;

    @Schema(description = "平台类型 1支付宝2微信")
    @NotNull
    private Byte officialAccountsType;

    @Schema(description = "appId")
    @NotNull
    private String appId;

    @Schema(description = "微信返回给前端的code 用于获取openId")
    @NotEmpty
    private String code;


}
